package cn.itrip.auth.service;

import cn.itrip.dto.Dto;
import cn.itrip.pojo.ItripUser;
import cn.itrip.vo.ItripUserVO;
import cn.itrip.vo.TokenVO;
import com.mysql.jdbc.StringUtils;

public interface UserService {
    //邮箱校验
    public boolean validEmail(String userCode) throws  Exception;

    //用户信息的添加
    public Dto itriptxAddItripUser(ItripUserVO vo) throws  Exception;

    //手机校验
    public boolean validPhone(String userCode) throws  Exception;

    //验证用户名是否存在
    public boolean ckusr(String name) throws Exception;

    //验证用户是否已激活
    public boolean activate(String name) throws Exception;

    //验证激活码是否正确
    public boolean activateCkusr(String md5user,String code) throws Exception;

    //验证激活码是否存在
    public boolean activateIsNull(String md5user,String code) throws Exception;

    //激活用户
    public boolean updateActivateByCode(String name) throws Exception;

    //用户登录
    public Dto doLogin(String userCode, String password,String userAgent)throws Exception;

    //删除用户
    public boolean deleteUser(String user)throws Exception;

}
